package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ApplicationRecordMapper;
import com.ruoyi.domain.ApplicationRecord;
import com.ruoyi.service.IApplicationRecordService;

/**
 * ApplicationRecordService业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class ApplicationRecordServiceImpl implements IApplicationRecordService 
{
    @Autowired
    private ApplicationRecordMapper applicationRecordMapper;

    /**
     * 查询ApplicationRecord
     * 
     * @param applicationId ApplicationRecord主键
     * @return ApplicationRecord
     */
    @Override
    public ApplicationRecord selectApplicationRecordByApplicationId(Long applicationId)
    {
        return applicationRecordMapper.selectApplicationRecordByApplicationId(applicationId);
    }

    /**
     * 查询ApplicationRecord列表
     * 
     * @param applicationRecord ApplicationRecord
     * @return ApplicationRecord
     */
    @Override
    public List<ApplicationRecord> selectApplicationRecordList(ApplicationRecord applicationRecord)
    {
        return applicationRecordMapper.selectApplicationRecordList(applicationRecord);
    }

    /**
     * 新增ApplicationRecord
     * 
     * @param applicationRecord ApplicationRecord
     * @return 结果
     */
    @Override
    public int insertApplicationRecord(ApplicationRecord applicationRecord)
    {
        return applicationRecordMapper.insertApplicationRecord(applicationRecord);
    }

    /**
     * 修改ApplicationRecord
     * 
     * @param applicationRecord ApplicationRecord
     * @return 结果
     */
    @Override
    public int updateApplicationRecord(ApplicationRecord applicationRecord)
    {
        return applicationRecordMapper.updateApplicationRecord(applicationRecord);
    }

    /**
     * 批量删除ApplicationRecord
     * 
     * @param applicationIds 需要删除的ApplicationRecord主键
     * @return 结果
     */
    @Override
    public int deleteApplicationRecordByApplicationIds(Long[] applicationIds)
    {
        return applicationRecordMapper.deleteApplicationRecordByApplicationIds(applicationIds);
    }

    /**
     * 删除ApplicationRecord信息
     * 
     * @param applicationId ApplicationRecord主键
     * @return 结果
     */
    @Override
    public int deleteApplicationRecordByApplicationId(Long applicationId)
    {
        return applicationRecordMapper.deleteApplicationRecordByApplicationId(applicationId);
    }
}
